package com.lbj.dao;

import com.lbj.domain.Topic;

import java.util.List;
import java.util.Map;

public interface TopicDao {
    List<Topic> getTopics();
    int deleteTopicById(String id);
    int addTopic(Topic topic);

    List<Topic> getTopicsByCondition(Map<String, String> conditions);

    Topic getTopicById(String id);

    int updateTopicInfo(Topic topic);

    List<Topic> getTopicsTop();

    List<Topic> pageList(int start, int pageSize);

    int getTotalCount();
}
